package BasicEngine
{
	//为了实现重载,构造了一个用ID做参数的消息
	public class MsgId extends Msg
	{
		public function MsgId(_note:String,_senderId:int,_accepterId:int,_procMin:String,_data:Object)
		{
			var sender:Entity = EntityManager.GetEntityByID(_senderId);
			var accepter:Entity = EntityManager.GetEntityByID(_accepterId);			
			
			super(_note, sender, accepter, _procMin, _data);
			
			if (_accepterId == -1)
			   super.AcceptID = -1;
			else
			   super.AcceptID = _accepterId;
		}
	}
}